var e = require;
var t = module;
var o = exports;
var n,
    i = o,
    a =
        ((n = function (e, t) {
            return (n =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (e, t) {
                        e.__proto__ = t;
                    }) ||
                function (e, t) {
                    for (var o in t) t.hasOwnProperty(o) && (e[o] = t[o]);
                })(e, t);
        }),
        function (e, t) {
            function o() {
                this.constructor = e;
            }
            n(e, t), (e.prototype = null === t ? Object.create(t) : ((o.prototype = t.prototype), new o()));
        });
Object.defineProperty(i, "__esModule", {value: !0});
var r = e("GameData"),
    s = (function (e) {
        function t(o) {
            return e.call(this, t.NAME, o) || this;
        }
        return (
            a(t, e),
            Object.defineProperty(t.prototype, "view", {
                get: function () {
                    return this.viewComponent;
                },
                enumerable: !1,
                configurable: !0
            }),
            (t.prototype.listNotificationInterests = function () {
                return [t.PlayAgain, t.CREATE_STORE_HOSE, t.START_STORE_TIME, t.STOP_STORE_TIME];
            }),
            (t.prototype.handleNotification = function (e) {
                switch (e.getName()) {
                    case t.PlayAgain:
                        this.playAgain();
                        break;
                    case t.CREATE_STORE_HOSE:
                        this.createStoreHose();
                        break;
                    case t.START_STORE_TIME:
                        this.startStoreHoseCountDown();
                        break;
                    case t.STOP_STORE_TIME:
                        this.stopStoreHoseCountDown();
                }
            }),
            (t.prototype.playAgain = function () {
                this.view.playAgain(), r.default.instance.isStoreHose && this.startStoreHoseCountDown();
            }),
            (t.prototype.createStoreHose = function () {
                this.view._layer_food.showPortal();
            }),
            (t.prototype.startStoreHoseCountDown = function () {
                this.view.startStoreHoseCountDown();
            }),
            (t.prototype.stopStoreHoseCountDown = function () {
                this.view.stopStoreHoseCountDown();
            }),
            (t.NAME = "GameModuleViewMediator"),
            (t.PlayAgain = "PlayAgain"),
            (t.CREATE_STORE_HOSE = "CREATE_STORE_HOSE"),
            (t.START_STORE_TIME = "START_STORE_TIME"),
            (t.STOP_STORE_TIME = "STOP_STORE_TIME"),
            t
        );
    })(puremvc.Mediator);
i.default = s;
